﻿@model Stardust.Models.TipoHabitacionXHotelXTemporadaViewModelEdit

@{
    ViewBag.Title = "Modificar el porcentaje asignado a la Temporada";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<h2>@ViewBag.Title</h2>

@Html.ValidationSummary(true)

@using (@Html.BeginForm("EditTipoHabitacionXHotelXTemporada", "Hotel", FormMethod.Post, new { @class = "form" }))
{ 
    <fieldset>
        <div class = "widget" >
            <div class = "title" >
                <img src="@Url.Content("~/Content/images/icons/dark/list.png")" alt class="titleIcon">
                <h6>@ViewBag.Title</h6>
            </div>

            <div class = "formRow" style="display:none;">
                @Html.LabelFor(model => model.idHotel)
                <div class = "formRight" > 
                    @Html.DropDownListFor(model => model.idHotel, new SelectList(Model.Hoteles, "ID", "nombre", Model.idHotel), "Elija un hotel...", new { @readonly = "readonly"})
                </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" style="display:none;">
                @Html.LabelFor(model => model.idTipoHabitacion)
                <div class = "formRight" >
                    @Html.DropDownListFor(model => model.idTipoHabitacion, new SelectList(Model.TipoHabitaciones, "idTipoHabitacion", "nombre", Model.idTipoHabitacion), "Elija un tipo de habitación...", new { @readonly = "readonly" })
                </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" style="display:none;">
                @Html.LabelFor(model => model.idTemporada)
                <div class = "formRight" >
                    @Html.DropDownListFor(model => model.idTemporada, new SelectList(Model.Temporadas, "idTemporada", "nombre", Model.idTemporada), "Elija una Temporada...", new { @readonly = "readonly" })
                </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" >
                @Html.LabelFor(model => model.porcDescuento)
                <div class = "formRight" >
                    @Html.TextBoxFor(model => model.porcDescuento)
                    @Html.ValidationMessageFor(model => model.porcDescuento)
                </div>
                <div class = "clear" ></div>
            </div>

        </div>
        <p>
            <input class = "redB" type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Regresar", "ListTipoHabitacionXHotelXTemporada", new { idHotel = Model.idHotel, idTipoHabitacion = Model.idTipoHabitacion })
</div>